From: Florian Müllner Date: Wed, 23 Jan 2019 22:40:18 +0000 (+0100) Subject: animation: Disable spinner animations when actor is destroyed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~140 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=edbb20433293f48beb4ff6beb8c1d0dd1bf035f1;p=gnome-shell.git animation: Disable spinner animations when actor is destroyed There's nothing to animate anymore, just a source for warnings when trying to access a destroyed object. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/362 --- diff --git a/js/ui/animation.js b/js/ui/animation.js index 5b4a10c08..65fff2cd7 100644 --- a/js/ui/animation.js +++ b/js/ui/animation.js @@ -104,6 +104,11 @@ var Spinner = new Lang.Class({ this._animate = animate; }, + _onDestroy() { + this._animate = false; + this.parent(); + }, + play() { Tweener.removeTweens(this.actor);